@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">
            <input type="hidden" id="role" value="${role}">
            <input type="hidden" id="status" value="${status}">
            <div class="row">
                @if(status == 2){
                <input type="hidden" id="userCode" value="${fixedInfo.userCode}">
                <div class="form-group" >
                    <div class="col-sm-9">
                        <#input id="birthday" name="出生日期" value="${fixedInfo.birthday}" disabled="disabled" />
                        <#input id="realName" name="真实姓名" value="${fixedInfo.realName}" disabled="disabled"/>
                        <#input id="idCard" name="身份证号码" value="${fixedInfo.idCard}" disabled="disabled"/>
                        <!--<#input id="idCardFrontUrl" name="身份证正面图片链接" value="${idCardFrontUrl}" disabled="disabled" />-->
                        <div style="margin-bottom: 1.2%">
                            <label style="margin-left: 6.7%">身份证正面图片</label>
                            <div style="margin-left: 26.7%;margin-top: -3.5%">
                                <a href="${idCardFrontUrl}" target="_blank"><img src="${idCardFrontUrl}" width="500" height="400"></a>
                            </div>
                        </div>
                        <!--<#input id="idCardBackUrl" name="身份证反面图片链接" value="${idCardBackUrl}" disabled="disabled" />-->
                        <div style="margin-bottom: 1.2%">
                            <label style="margin-left: 6.7%">身份证反面图片</label>
                            <div style="margin-left: 26.7%;margin-top: -3.5%">
                                <a href="${idCardBackUrl}" target="_blank"><img src="${idCardBackUrl}" width="500" height="400"></a>
                            </div>
                        </div>
                        <#input id="idCardAddress" name="身份证地址" value="${fixedInfo.idCardAddress}" disabled="disabled"/>
                        <#input id="nationality" name="名族" value="${fixedInfo.nationality}" disabled="disabled" />
                    </div>
                </div>
                <div class="row btn-group-m-t" style="margin-left: 20%">
                    <div class="col-sm-10">
                        <#button btnCss="info" name="认证成功" id="ensure" icon="fa-check" clickFun="fixedInfoDlg.Success()"/>
                        <#button btnCss="danger" name="认证失败" id="cancel" icon="fa-eraser" clickFun="fixedInfoDlg.Fail()"/>
                    </div>
                </div>
                @}

                @if(status ==4||status ==5||status ==6||status ==7){
                <div class="form-group" >
                    <div class="col-sm-9">
                        <#input id="birthday" name="出生日期" value="${fixedInfo.birthday}" disabled="disabled" />
                        <#input id="realName" name="真实姓名" value="${fixedInfo.realName}" disabled="disabled"/>
                        <#input id="idCard" name="身份证号码" value="${fixedInfo.idCard}" disabled="disabled"/>
                        <!--<#input id="idCardFrontUrl" name="身份证正面图片链接" value="${fixedInfo.idCardFrontUrl}" disabled="disabled" />-->
                        <div style="margin-bottom: 1.2%">
                            <label style="margin-left: 6.7%">身份证正面图片</label>
                            <div style="margin-left: 26.7%;margin-top: -3.5%">
                                <a href="${idCardFrontUrl}" target="_blank"><img src="${idCardFrontUrl}" width="500" height="400"></a>
                            </div>
                        </div>
                        <!--<#input id="idCardBackUrl" name="身份证反面图片链接" value="${fixedInfo.idCardBackUrl}" disabled="disabled" />-->
                        <div style="margin-bottom: 1.2%">
                            <label style="margin-left: 6.7%">身份证反面图片</label>
                            <div style="margin-left: 26.7%;margin-top: -3.5%">
                                <a href="${idCardBackUrl}" target="_blank"><img src="${idCardBackUrl}" width="500" height="400"></a>
                            </div>
                        </div>
                        <#input id="idCardAddress" name="身份证地址" value="${fixedInfo.idCardAddress}" disabled="disabled"/>
                        <#input id="nationality" name="名族" value="${fixedInfo.nationality}" disabled="disabled" />
                    </div>
                </div>
                @}
                @if(hasInfo==1){
                    @for(item in userInfo){
                    <div class="form-group" name="infoItem" id="infoItem${itemLP.index}">
                        <div class="col-sm-9">
                            <label style="margin-left: 20px;">地址${itemLP.index}</label>
                            <input type="hidden" id="userInfoId${itemLP.index}" value="${item.userInfoId}">
                            <#input id="receiveAddress${itemLP.index}" value="${item.receiveAddress}" name="收货地址" disabled="disabled"/>
                            <#input id="receiveName${itemLP.index}" name="收货人" value="${item.receiveName}" disabled="disabled"/>
                            <#input id="receiveTel${itemLP.index}" name="联系电话" value="${item.receiveTel}" disabled="disabled" underline="true"/>
                        </div>
                    </div>
                    @}
                @}
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <!--<#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="userInfoDlg.editSubmit()"/>-->
                    <#button btnCss="danger" name="关闭" id="cancel" icon="fa-eraser" clickFun="userInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/template" id="itemTemplate">
    <!--用户信息-->
    <div class="col-sm-6 form-group" name="dictItem" id="dictItem" style="margin-left: 20%">
        <div>
            <label>收货地址</label>
            <div>
                <input class="form-control" type="text" name="itemNum" id="receiveAddress" style="width: 420px;"  maxlength="30">
            </div>
        </div>
        <div>
            <label>收货人</label>
            <div>
                <input class="form-control" type="text" name="itemNum" id="receiveName" style="width: 420px;"  maxlength="30">
            </div>
        </div>
        <div>
            <label>联系电话</label>
            <div>
                <input class="form-control" type="text" name="itemNum" id="receiveTel" style="width: 420px;"  maxlength="30">
            </div>
        </div>
        <div class="col-sm-4" style="margin-left:95%;margin-top: 1%;">
            <#button btnCss="danger"  name="删除" id="cancel" icon="fa-remove" clickFun="userInfoDlg.deleteItem(event)"/>
        </div>
    </div>
</script>
<script src="${ctxPath}/static/modular/wz/wzUser/wzUser_userInfo.js"></script>
<script src="${ctxPath}/static/modular/wz/wzUser/wzUser_fixedInfoCheck.js"></script>
@}
